]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
searchController: Use ClutterText::cursor_position instead of position
authorSebastian Keller <skeller@gnome.org>
Sat, 11 Nov 2023 21:36:02 +0000 (22:36 +0100)
committerSebastian Keller <skeller@gnome.org>
Sat, 11 Nov 2023 21:36:02 +0000 (22:36 +0100)
The deprecated position property has been removed in mutter commit
31849868 in favor of the otherwise identical cursor_position property.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7186
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3015>

js/ui/searchController.js

index 25b53e6e1fa22471bbe5a6b551901d6a56812169..53a8cb863a9bea3168443e152d95e029e5aa5c50 100644 (file)
@@ -292,7 +292,7 @@ export const SearchController = GObject.registerClass({
             } else if (symbol === Clutter.KEY_Down) {
                 this._searchResults.navigateFocus(St.DirectionType.DOWN);
                 return Clutter.EVENT_STOP;
-            } else if (symbol === arrowNext && this._text.position === -1) {
+            } else if (symbol === arrowNext && this._text.cursor_position === -1) {
                 this._searchResults.navigateFocus(nextDirection);
                 return Clutter.EVENT_STOP;
             } else if (symbol === Clutter.KEY_Return || symbol === Clutter.KEY_KP_Enter) {